Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update pre-commit Hook Versions #44

Merged
merged 8 commits into from
May 14, 2020

Conversation

mcdonnnj
Copy link
Member

🗣 Description

In an effort to keep things up to date I am trying to run a pre-commit autoupdate monthly to refresh hooks. This is the result of this effort.

The pre-commit/mirrors-isort repository has been deprecated since isort now contains appropriate code to run as a pre-commit hook. The repository used in the pre-commit configuration have been updated appropriately.

We have seen a number of issues from using the terraform_validate hook. These have primarily been related to proxy providers and Terraform code using remote state. The issue with remote state can be read about at hashicorp/terraform#21408, and the issue with proxy providers has been wrapped into that issue as described in this reply: hashicorp/terraform#21706 (comment). There is an accepted PR (hashicorp/terraform#24887) for remote state that is included in the future Terraform 0.13 release. I am unsure if it will resolve issues with proxy providers as there is another PR (hashicorp/terraform#24896) waiting for feedback that attempts to deal with that specifically.

💭 Motivation and Context

Updates are good, fixing problems is good, things are good 👍

🧪 Testing

All automated tests pass.

📷 Screenshots (if appropriate)

🚥 Types of Changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (causes existing functionality to change)

✅ Checklist

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

The mirrors-isort respository has been deprecated per this Pull Request:
pre-commit/mirrors-isort#13
Since isort includes pre-commit configuration in current versions we will
switch to using it directly.
This comment references the mirrors-isort repository that we are no longer
using.
We have seen a number of issues related to this hook ever since it was
re-enabled. It will need to remain disabled until at least the 0.13 Terraform
release, and can only be re-enabled if all issues we have seen have been
resolved in how `terraform validate` operates.
@mcdonnnj mcdonnnj requested review from dav3r, felddy, hillaryj, jsf9k and a team as code owners May 13, 2020 20:18
@mcdonnnj mcdonnnj self-assigned this May 13, 2020
Copy link
Member

@dav3r dav3r left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved, though please see my request for an addition to a comment.
↪️

.pre-commit-config.yaml Show resolved Hide resolved
Copy link
Member

@jsf9k jsf9k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Strong work. Approved, but please see @dav3r's comment.

Copy link
Member

@felddy felddy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wunderbar!

…bled.

Review noticed that there lacked a determination for what we were doing about
the problem with the terraform_validate hook. I described the problems but
failed to mention what our path forward would be. This commit rectifies that
oversight.
…om:cisagov/skeleton-generic into improvements/pre-commit_autoupdate_2020-05
Copy link
Contributor

@hillaryj hillaryj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

@jsf9k
Copy link
Member

jsf9k commented May 14, 2020

:shipit:

@mcdonnnj mcdonnnj merged commit 70f0cbd into develop May 14, 2020
@mcdonnnj mcdonnnj deleted the improvements/pre-commit_autoupdate_2020-05 branch May 14, 2020 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

5 participants